#ifndef BATCHNETWORKACCESSMANAGER_H
#define BATCHNETWORKACCESSMANAGER_H

#include <QtNetwork>
////#include "t_core/nam.h"

////class BatchNetworkAccessManager : public T_NetworkAccessManager
class BatchNetworkAccessManager : public QNetworkAccessManager
{
    Q_OBJECT
public:
    explicit BatchNetworkAccessManager(QObject *parent = 0);
    virtual QNetworkReply* createRequest ( Operation op, const QNetworkRequest & req, QIODevice * outgoingData = 0 );

    QByteArray doGet(QString a_url, QString *a_contentType = 0);
    QByteArray doGet(QUrl a_url, QString *a_contentType = 0);
    QByteArray doGet(QNetworkRequest request, QString *a_contentType = 0);
    QByteArray doPost(QNetworkRequest request, QByteArray postData);
    int batPost(QNetworkRequest request, QByteArray &postData, QByteArray &responsdData);
    int batDelete(QNetworkRequest request);
    QList<QByteArray> doGetList(QList<QNetworkRequest> requestList);
private slots:
#ifndef QT_NO_OPENSSL
    void sslErrors(QNetworkReply *reply, const QList<QSslError> &error);
#endif
};

#endif // BATCHNETWORKACCESSMANAGER_H
